package models
{
	import _Pan3D.display3D.analysis.ObjAnalysis;
	
	import mx.collections.ArrayCollection;

	[Bindable]
	public class ModelLocator
	{
		
		public var libData:ArrayCollection = new ArrayCollection;
		public var libSelect:Object = new Object;
		
		public var combineData:ArrayCollection = new ArrayCollection;
		public var combineSelect:Object;
		
		public var currentLibName:String;
		
		public var boneList:ArrayCollection = new ArrayCollection;
		public var selectBone:Object;
		
		public var meshList:ArrayCollection = new ArrayCollection;
		public var meshAry:ArrayCollection = new ArrayCollection;
		public var selectMesh:Object;
		
		public var isRender:Boolean;
		public var hasMesh:Boolean;
		public var hasBone:Boolean;
		

		private static var instance:ModelLocator;  
  
        public static function getInstance():ModelLocator  
        {  
            if(instance==null)  instance = new ModelLocator();  
            return instance;  
        }  
  																											
        public function ModelLocator()  
        {  
              
            if(instance!=null) throw new Error("Error: Singletons can only be instantiated via getInstance() method!");  
            ModelLocator.instance = this;  
        }  
		
	}
}